#pragma once
#include "WeakClassifier.h"
#include <vector>
using namespace std;

class StrongClassifer
{
public:
	StrongClassifer(float minAccuracy, float maxFalseAlarm);
	StrongClassifer();
	~StrongClassifer();
	bool Train(vector<TRAIN_SAMPLE>& samples, vector<WeakClassifier*>& vcWeakClassifier);
	int Predict(vector<float> feat, float* confident = 0);
private:
	void TestClassifier(vector<TRAIN_SAMPLE>& samples, float* fAccuracy, float* fFalseAlarm);
	float _minAccuracy;
	float _maxFalseAlarm;
public:
	vector<WeakClassifier*> vcFinalClassifier;
};

